using System;
using Microsoft.Phone.Controls;

namespace Phoenix
{
    /// <summary>
    /// Inherit from PhoenixPage to enable orientation changed event being raised
    /// </summary>
    public class PhoenixPage : PhoneApplicationPage
    {
        internal new void OnOrientationChanged(OrientationChangedEventArgs e)
        {
            base.OnOrientationChanged(e);
            var handler = OrientationChanged;
            if (handler != null)
                handler(this, e);
        }

        public new event EventHandler<OrientationChangedEventArgs> OrientationChanged;
    }
}